package com.overlord.im.commons.mq.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.ErrorHandler;

/**
 * @author wuwei
 * @className MqErrorHandler
 * @description
 * @date 2020/4/1 17:03
 **/
public class MqErrorHandler implements ErrorHandler {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void handleError(Throwable t) {
        this.logger.error("MQ 发生异常 : {},{}" + t.getMessage(), t);
    }
}